import request from '@/utils/request'

// 查询平台秘钥列表
export function listApikey(query) {
  return request({
    url: '/service/apikey/list',
    method: 'get',
    params: query
  })
}

// 查询平台秘钥详细
export function getApikey(keyid) {
  return request({
    url: '/service/apikey/' + keyid,
    method: 'get'
  })
}

// 新增平台秘钥
export function addApikey(data) {
  return request({
    url: '/service/apikey',
    method: 'post',
    data: data
  })
}

// 修改平台秘钥
export function updateApikey(data) {
  return request({
    url: '/service/apikey',
    method: 'put',
    data: data
  })
}

// 删除平台秘钥
export function delApikey(keyid) {
  return request({
    url: '/service/apikey/' + keyid,
    method: 'delete'
  })
}
